package com.app.service;

import com.app.model.AttachmentModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface AttachmentService {


    AttachmentModel getAttById(int id);

    Page<AttachmentModel> getPageAttList(int page, int limit,Integer pid,Integer type);//文件管理分页查询

//    List<RoleModel> getRoleListLikeName(String roleName);//根据角色名字筛选

    void update(AttachmentModel model);

    void insert(AttachmentModel model);

    void delete(int id);

    List<AttachmentModel> getStatisticsByIds(List<Integer> idList, String key);//首页统计

    Integer count();


}
